package com.xmu.edu.tisp.database;

import java.util.*;

public class Tables {
	
	public static final String TB_DATA_CXCHANGE="PDA_DATA_EXCHANGE";
	public static final String TB_PDA_USER="PDA_USER";
	public static final String TB_PDA_WEB_ADDR="PDA_WEB_ADDR";
	public static final String TB_PDA_PARAM="PDA_PARAM";
	
	static HashMap<String,String> tables=new HashMap<String,String>();
	
	static{
		// com.xmu.edu.tisp.basedata.service
		tables.put("CM_LEAF_COLOR", "LEAF_COLOR_UUID");
		tables.put("CM_LEAF_LEVEL","LEAF_LEVEL_UUID");
		tables.put("CM_LEAF_POSITION","LEAF_POSITION_UUID");
		tables.put("CM_LEAF_RANK","LEAF_RANK_UUID");
		tables.put("CM_LEAF_TYPE","LEAF_TYPE_UUID");
		tables.put("CM_LEAF_VARIETY","LEAF_VARIETY_UUID");
		tables.put("CM_ORG","ORG_UUID");
		
		tables.put(TB_DATA_CXCHANGE,"DT_EXCHANGE_ID");
		tables.put(TB_PDA_PARAM,"PDA_PARAM_ID");
		tables.put(TB_PDA_USER,"USER_ID");
		tables.put(TB_PDA_WEB_ADDR,"PDA_WEB_ADDR_ID");
		
		tables.put("TF_FARMER_FINAL","FARMER_ID");
		tables.put("TP_GROW_POINT","GROW_POINT_ID");
		tables.put("TP_ROAST_HOUSE","ROAST_HOUSE_ID");
		tables.put("TP_SERVICE_AREA","SERVICE_AREA_ID");
		tables.put("XJSZXX","HTH");
		//com.xmu.edu.tisp.contract.service
		tables.put("TP_FIELD_BLOCK","FIELD_BLOCK_ID");
		tables.put("XJSZ_ZYMD_DETAIL","XJSZ_ZYMD_DETAIL_ID");
		tables.put("XJSZ_ZYMD", "XJSZ_ZYMD_ID");
		tables.put("XJSZ_ZYSQQR_DETAIL", "XJSZ_ZYSQQR_DETAIL_ID");
		tables.put("XJSZ_ZYSQQR", "XJSZ_ZYSQQR_ID");
		//com.xmu.edu.tisp.preview.service
		tables.put("BU_BUY_CALENDAR", "BUY_CALENDAR_ID");
		tables.put("BU_PRE_CHECK_DETAIL", "PRE_CHECK_DETAIL_ID");
		tables.put("BU_PRE_CHECK", "PRE_CHECK_ID");
		//com.xmu.edu.tisp.taskprocess.service
		tables.put("CR_INDEX_COLLECT", "INDEX_COLLECT_ID");
		tables.put("CR_INDEX", "INDEX_ID");
		tables.put("CR_TASK_FEEDBACK_DETAIL", "TASK_FEEDBACK_DETAIL_ID");
		tables.put("CR_TASK_FEEDBACK", "TASK_FEEDBACK_ID");
		tables.put("CR_TASK_INDEX", "TASK_INDEX_ID");
		tables.put("CR_TASK_OBJECT", "TASK_OBJECT_ID");
		tables.put("CR_TASK", "TASK_ID");
		tables.put("CR_TASK_TYPE", "TASK_TYPE_ID");
		tables.put("TP_TECH_QUERY", "ID");
		tables.put("CR_TASK_TECH_TYPE", "TASK_TECH_TYPE_ID");
		tables.put("CR_INDEX_VALUE_LIST", "INDEX_LIST_ID");
		/*
		tables.put("", "");
		tables.put("", "");
		tables.put("", "");
		tables.put("", "");
		*/
	}
	
	public static String primaryKey(String tableName){
		if(tables.containsKey(tableName)) return tables.get(tableName);
		return null;
	}
	
	public static Set<String> getTables(){
		return tables.keySet();
	}
	
	
	
	
	
}
